home *** CD-ROM | disk | FTP | other *** search
- 0 print"[147]"tab(10)"digital decomposition[146]":poke53280,0:poke53281,0:poke646,1
- 1 rem commodares problem #34-3:
- 2 rem digit decomposition
- 3 rem solution by
- 4 rem necah buyukdura
- 5 rem
- 10 ct=208 : bf=842 :rem c-128 kbd buffer
- 20 if ds$="" then ct=198 : bf=631 :rem c-64 kbd buffer
- 30 poke ct,0 : wait ct,1
- 40 d=peek(bf)-48 : print d; : s=s+d
- 50 poke ct,0 : wait ct,1
- 60 if peek(bf)<>13 then print "+";: goto 40
- 70 print "=" s
-